﻿<%@page contentType="text/vnd.wap.wml; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="common.*"%>
<%@ page import="wapbean.*"%>

<?xml version="1.0" encoding="utf-8"?>  
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org//DTD//wml_1.1.xml">   
<wml> 
<card id="card1" title="游戏名称">            
<p align="left">
  
 <img src="/game3.0/img/logo.png" alt=""/><br /><br />  
	
   <%       String ip=request.getRemoteAddr();
	      //  System.out.println("ip="+ip);
         //获取 当前时间
		  GetDateTime GetDateTime = new GetDateTime();
	      String nowtime = GetDateTime.getDate();
		  String purl = request.getParameter("purl");
          String CategoryID = request.getParameter("CategoryID");
		  String MobileModelID = request.getParameter("MobileModelID");
		  String ProviderID = request.getParameter("ProviderID");
          String contentid = request.getParameter("contentId");
          String cpId = request.getParameter("cpId");
		  String ContentResourceID = request.getParameter("ContentResourceID");
		  String submitCode = request.getParameter("submitCode");
		  String gamename = request.getParameter("gamename");
		  String name = new String(gamename.getBytes("iso-8859-1"),"utf-8");
		  
		 // System.out.println("CategoryID=========="+CategoryID);
		 // System.out.println("MobileModelID========="+MobileModelID);
	     // System.out.println("ProviderID=============="+ProviderID);
	     // System.out.println("contentid============="+contentid);
		 // System.out.println("gamename============="+gamename);
		   WapcategoryFactory Fac = new WapcategoryFactory();
		     ContentFactory fac1 = new ContentFactory();
			  WapcontentBean wbea=fac1.getconnectNum(contentid);
			  SpinFoBean fo=fac1.getspType(submitCode);  
	   		  String spid=fo.getProviderId();
	   		  String price=fo.getPrice();
	   		  UseraccesslogBean be=new UseraccesslogBean();
			  Allbean be1=new Allbean();
			  WapcontentBean be2=new WapcontentBean();
	                    be.setContentID(contentid); 
	   		            be.setCreateDate(nowtime);
	   		            be.setContentResourceID(ContentResourceID);
	   			        be.setMobileModelID(MobileModelID);
	   		            be.setCategoryID(CategoryID);
	   			        be.setProviderID(ProviderID);
	   			        be.setUserIp(ip);
	   			        be.setCpId(cpId);  
	   		            be.infor();
						be2.setUsedNum(wbea.getUsedNum());  
	   		            be2.updatecontenUsedNum(contentid);  
		   Allbean bea =Fac.getContent(contentid); 
		   Allbean bea1=Fac.getWapcategoryBeanMO1(contentid,purl);  
		  String GameResourceID=bea1.getGameResourceID();
		 // System.out.println("GameResourceID============="+GameResourceID); 
		   String file=MobileModelID+";"+ProviderID+";"+CategoryID+";"+ContentResourceID+";"+GameResourceID+";"+ip+";"+cpId+";"+spid+";"+price+";"+submitCode;      
	%>     
    [<%=name%>]<br /> 
	 <!-- <img src="http://211.94.188.131:8090<%=bea.getFileDir()%>" width="100" height="80" align="top" alt=""/> -->
	 <img src="http://wap.leyoou.cn/game2.0<%=bea.getFileDir()%>" width="100" height="80" align="top" alt=""/>     
	<br />   
   	大小:[<%=bea1.getFileSize()%>KB]<br />    
   	[简介]:<%=bea.getDescription()%>.......<br />      
	 
   	<%if(fo.getSpType().equals("SMS")){ %>                           
	 <a href="http://wap.leyoou.cn/game3.0/GameuploadServlet?contentid=<%=contentid%>&amp;CategoryID=<%=file%>">下载</a>    
	 <%}
	 else{ %>          
	 <a href="http://wap.monternet.com/reversesubscribe?SPID=900695&amp;ServiceID=03203922&amp;SPURL=http://wap.yidatone.com/wap/ring/ylwzx_jc_detail_at.jsp?qudao=one1005&amp;backurl=http://www.mobi5cool.com/FeeWAP/in.aspx?d=10770001&amp;msg=WAPXXBP201234567891234ZY29&amp;ftype=02&amp;sreid=001&amp;p=zy0001&amp;rid=<%=contentid%>&amp;cid=<%=file%>">下载</a>
	 <%} %>   
	 <!-- <a href="http://211.94.188.131:8090<%=bea1.getFileDir()%>">下载3</a> -->     
	
   <br />
    <!--<a href="/game3.0/wappages/scoregame.jsp?tid=<%=contentid%>">游戏评测</a> 
	<br /> -->
	<a href="/game3.0/wappages/urlfunction.jsp?CategoryID=<%=CategoryID%>&amp;MobileModelID=<%=MobileModelID%>&amp;ProviderID=<%=ProviderID%>&amp;contentId=<%=contentid%>&amp;gamename=<%=name%>&amp;purl=<%=purl%>&amp;ContentResourceID=<%=ContentResourceID%>&amp;cpId=<%=cpId%>&amp;submitCode=<%=submitCode%>">游戏攻略</a> 
	<br /> 
	<a href="/game3.0/wappages/gameList.jsp?CategoryID=<%=CategoryID%>&amp;MobileModelID=<%=MobileModelID%>&amp;ProviderID=<%=ProviderID%>&amp;purl=<%=purl%>">返回</a> 
  
	<br />     
  
</p>
</card>
</wml>